package com.hs.srm.admin.modules.requisition.dao;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.hs.srm.admin.modules.requisition.entity.ProPurchRequestHeaderEntity;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.mapper.BaseMapper;


public interface ProPurchRequestHeaderDao extends BaseMapper<ProPurchRequestHeaderEntity> {
	//返回实体
	ProPurchRequestHeaderEntity queryProPurchRequestHeader();
	
	ProPurchRequestHeaderEntity selectById(@Param("pkId") String pkId);
	
	ProPurchRequestHeaderEntity findByNo(@Param("purchRequestCode") String purchRequestCode);
	
	void updateName(ProPurchRequestHeaderEntity proPurchRequestHeaderEntity);
	
	List<ProPurchRequestHeaderEntity> selectBatchIds(@Param("ids")List<String> ids);
	
    List<ProPurchRequestHeaderEntity> selectHeadPage(Page<ProPurchRequestHeaderEntity> page, Wrapper<ProPurchRequestHeaderEntity> wrapper,@Param(value = "params") Map<String, Object> params);
}
